<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-medical-biz-statistic" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>医疗业务及异常信息</strong></span>进行查询! 
			<font color="green">绿色数字</font>为业务信息，点击数字可以查看业务情况， 
			<font color="red">红色数字</font>为异常信息，点击数字可以查看异常情况。
		</p>
	</div>
	<div class="condition easyui-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
		<form class="condition-form">
			<fieldset>
			<table> 	
				<tr>
					
					<th>科室名称</th>
					<td><input name="doct_depart_name" id="doct_depart_name" type="text"  class="easyui-textbox easyui-validatebox" style="width:200px"/></td>
					
					<th>统计时间</th>
					<td><input name="outhospitalat_start" id="outhospitalat_start" class="easyui-datebox easyui-validatebox" style="width:200px"/></td>
					<th>-</th>
					<td><input id="outhospitalat_end" name="outhospitalat_end" class="easyui-datebox easyui-validatebox" style="width:200px"/></td>
					
				</tr>
				
			</table>
			</fieldset>
		</form>
	</div>
	<div class="search-mm">			
		<div name="doct_depart_name_like">科室名称</div>					
	</div>
    <div class="tb-list" style="padding:2px 0">
		<table> 
			<tr>
				<td style="padding-left:2px" class="list-btn">
			
				</td>
				<td style="padding-left:2px">
					<input class="searchbox" type="text"/>
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"  plain="true" >查询条件</a>
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search" plain="true" >执行查询</a>
				</td>
			</tr>
		</table>
	</div>
	<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto',
		pagination : true">
		
		<thead>						
			<tr>				
				<th field="doct_depart_name" width="60" align="center">科室名称</th>
				<th field="inpatient_num" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">期间在院病人</th>				
				<th field="inpatient_month_admission" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">期间入院病人</th>				
				<th field="inpatient_month_out" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">期间出院病人</th>
				
						
				<th field="sumary_matter" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return ';color:blue;';							
						}
					}
					,
					formatter:function(value,row,index){
						if(!value){
							return '0';
						}
						return value;
					}
				">期间异常人次</th>
				
				<th field="bed_wrong" width="40" align="center" 
				data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'background-color:#ffee00;color:red;';							
						}
					}
					,
					formatter:function(value,row,index){
						if(!value){
							return '0';
						}
						return value;
					}
				">床位费</th>
				<th field="treat_wrong" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'background-color:#ffee00;color:red;';							
						}
					}
					,
					formatter:function(value,row,index){
						if(!value){
							return '0';
						}
						return value;
					}
				">诊疗费</th>
				<th field="nursing_wrong" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'background-color:#ffee00;color:red;';							
						}
					}
					,
					formatter:function(value,row,index){
						if(!value){
							return '0';
						}
						return value;
					}
				">护理费</th>
				
				<th field=large_cost width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'background-color:#ffee00;color:red;';							
						}
					}
					,
					formatter:function(value,row,index){
						if(!value){
							return '0';
						}
						return value;
					}
				">大额费用</th>
				
				<th field="matter_percent" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'background-color:#ffee00;color:red;';							
						}
					},formatter: function(value,row,index){
						if (value > 0){
							return   value.toFixed(2) +'%';							
						}else{
							return '00.00%';
						}
					}
					
				">期间异常比例</th>					
										
			</tr>                         
		</thead>
		
	</table>
</div>
<script>
requirejs(['listPageModule','medicalStatistic','domReady!'],function(dept,medicalStatistic,doc){
	dept.init({doc:doc,
		rootId:'panel-medical-biz-statistic',				
		subSystemCode:'medical',
		cellClick:medicalStatistic.clickBizStaticCell,
		rowClick:medicalStatistic.clickBizStaticRow,
		moduleCode:'medicalStatistic',
		listHeightResize : -50,
		querylistUrl:'getBizListDomain',
		initElement:medicalStatistic.bizInit
	});
});	

</script>

